﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<UncleBobWebService.Models.RegisterModel>" %>

<!DOCTYPE html>

<html>
    <head runat="server">
        <meta name="viewport" content="width=device-width" />
        <title>RegisterPreview</title>
        <link href="/Theme/UncleBobTheme.css" rel="Stylesheet" />        
    </head>

    <body class="body">
      <!-- Headers -->
      <h2>Account Preview</h2>

      <!-- Beginning of Form -->
      <% using (Html.BeginForm("PreviewFormAction", "Register", FormMethod.Post)) {%>

      <!-- Applicant basic information -->
      <div class="box">
          <div>
              <div>
                  <div style="font-weight:bold">Username:</div>
                  <div><%= Html.DisplayFor(model => Model.Username) %></div>
              </div> <br />
              <div>
                  <div style="font-weight: bold">First Name:</div>
                  <div><%= Html.DisplayFor(model => Model.FirstName) %></div>
              </div> <br />
              <div>
                  <div style="font-weight: bold">Last Name:</div>
                  <div><%= Html.DisplayFor(model => Model.LastName) %></div>
              </div> <br />
              <% if (Model.MI != string.Empty) {%>
              <div>
                  <div style="font-weight: bold">Middle Initial:</div>
                  <div><%= Html.DisplayFor(model => Model.MI)%></div>
              </div>
              <br />
              <%} %>
              <div>
                  <div style="font-weight: bold">Phone Number:</div>
                  <div><%= Html.DisplayFor(model => Model.PhoneNumber) %></div>
              </div> <br />
              <% if (Model.Email != string.Empty) {%>
              <div>
                  <div style="font-weight: bold">Email:</div>
                  <div><%= Html.DisplayFor(model => Model.Email) %></div>
              </div> <br />
              <%} %>
              <div>
                  <div style="font-weight: bold">Address:</div>
                  <div><%= Html.DisplayFor(model => Model.Address) %></div>
              </div>
          </div>
        </div>

        <!-- Buttons -->
        <div style="margin-top:30px">
          <input class=button type=submit id=cmdBack name=back value=Back />
          <input class=button type=submit id=cmdSubmit name=submit value=Submit />
          <input class=button type=submit id=cmdCancel name=cancel value=Cancel />
        </div>

        <%} %>

    </body>

</html>
